package com.simple.simple_view.service;

import org.springframework.stereotype.Service;
import org.springframework.util.concurrent.ListenableFuture;

import java.io.IOException;
import java.io.InputStream;

/*
 *@description: oss文件上传功能
 *@author: hisen
 *@Time: 2023/10/28  17:02
 */
@Service
public interface OSSUploadService {

    ListenableFuture<String> upload(InputStream inputStream, String fileDir) throws IOException;

    ListenableFuture<String> resumeUpload(InputStream inputStream) throws IOException;

}
